var $dataForm = $("#dataForm");

function loadInfo() {
    var mobile = window.localStorage.getItem("mobile");
    var url = BASE_PATH + '/front/player/detail';
    var param = { "mobile": mobile };
    $.post(url, param, function(resp) {
        if (resp.code != 0) {
            return false;
        }
        var item = resp.data;
        for (var k in item) {
            if (!item.hasOwnProperty(k)) {
                continue;
            }
            $('.js-' + k, $dataForm).text(item[k] || '');
        }
    })
}

$(document).ready(function() {
    loadInfo();
})